﻿using Global.Core.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.SRV.ViewModel.Password
{
    public class ChangModel
    {
        [Display(Name = "旧密码")]
        [DataType(DataType.Password)]
        [ZyfeiRequired]
        [ZyfeiStringLength(20, MinimumLength = 4)]
        public string Old { get; set; }

        [Display(Name = "新密码")]
        [DataType(DataType.Password)]
        [ZyfeiRequired]
        [ZyfeiStringLength(20, MinimumLength = 4)]
        public string New { get; set; }

        [Compare("New", ErrorMessage = "* 确认密码和密码不一致")]
        [DataType(DataType.Password)]
        [Display(Name = "确认密码")]
        [ZyfeiRequired]
        [ZyfeiStringLength(20, MinimumLength = 4)]
        public string NewConfirm { get; set; }
    }
}
